<template>
  <div>
    <h3>当前最新的count值: {{ count }}</h3>
    <button @click="cutdown">-1</button>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  computed: {
    ...mapState(["count"]),
  },
  methods: {
    cutdown() {
      this.$store.commit("cutdown",0);
    },
  },
};
</script>

<style>
</style>